﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Emerson.Storage.Agent
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool isNewInstance;
            System.Threading.Mutex mtx = new System.Threading.Mutex(true, "Emerson.Storage.Agent", out isNewInstance);
            if (isNewInstance == false)
            {
                MessageBox.Show("This application is already running.");
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new AgentForm());

        }
    }
}
